<?php
	require_once('../includes/user.php');
	$user=new User();
	$pt_res=$user->query("select * from points where id='$_POST[req_id]'");
	$pt_row=mysql_fetch_array($pt_res);
	if($pt_row['status']==1)
	{
		$user->record['inbox']=1;
		$user->update('points',"id='$_POST[req_id]'");
	}
	else
	{
		$user->delete('points',"id='$_POST[req_id]'");
	}
?>